import request from '@/utils/request'

export const getQuestionListService = (params) => {
  return request.get('/question/list', { params })
}

export const addQuestionService = (params) => {
  return request.post('/question/add', params)
}

export const getQuestionDetailsService = (questionId) => {
  return request.get('/question/detail', { params: { questionId } })
}

export const editQuestionService = (params) => {
  return request.put('/question/edit', params)
}

export const delQuestionService = (questionId) => {
  return request.delete('/question/delete', { params: { questionId } })
}
